/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.wpi.first.wpilibj.team1662.commands.auto;

import edu.wpi.first.wpilibj.command.CommandGroup;
import edu.wpi.first.wpilibj.team1662.commands.CommandBase;

/**
 *
 * @author programmer
 */
public class Wait extends CommandBase{

    public Wait(){
        setTimeout(2);
        requires(drivetrain);
        requires(pickUp);
    }
    
    protected void initialize() {
        pickUp.pickDown();
        drivetrain.cheezit(1);
    }

    protected void execute() {
        pickUp.pickDown();
        drivetrain.cheezit(1);
    }

    protected boolean isFinished() {
        return isTimedOut();
    }

    protected void end() {
        pickUp.pickDown();
        drivetrain.cheezit(0);
    }

    protected void interrupted() {
        pickUp.pickUp();
    }
    
}
